package com.bmf.constant;

import com.bmf.core.exception.Assert;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * admin结果枚举
 *
 * @author liumiao
 * @date 2022/08/12
 */
@Getter
@AllArgsConstructor
public enum AdminResultEnum implements Assert {


    /**
     * 数据异常
     */
    CREATE_EXCEPTION(10001, "添加失败"),
    UPDATE_EXCEPTION(10002, "修改失败"),
    DELETE_EXCEPTION(10003,"删除失败"),
    NO_TIMES(10004,"没有考试次数"),
    NO_EXAM(10005,"考试没有指定试卷"),
    NO_QUESTION(10006,"此分类没有题目"),
    SAME_QUESTION_TYPE(10007,"添加了相同的题目分类"),



    ;

    /**
     * 返回码
     */
    private final int code;

    /**
     * 返回消息
     */
    private final String message;
}
